/**
 * Copyright© 2003-2019 浙江汇信科技有限公司, All Rights Reserved. <br/>
 */
package com.icinfo.cloud.provider.punish.app.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.icinfo.framework.mybatis.mapper.annotation.Before;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * 描述: 案件文书记录表-TRJ app_case_before_document_record 对应的实体类.<br>
 * WARNING：不是表中字段的属性必须加@Transient注解
 * @author framework generator
 * @date 2022年04月12日
 */
@Table(name = "upcase.app_case_before_document_record")
@Data
public class AppCaseBeforeDocumentRecord implements Serializable {
    /**
     * 主键
     */
    @Id
    @Column(name = "id")
    @Before
    private String id;

    /**
     * 文书目录编码
     */
    @Column(name = "document_catalog_code")
    private String documentCatalogCode;

    /**
     * 文书地址
     */
    @Column(name = "document_url")
    private String documentUrl;

    /**
     * 文书创建时间
     */
    @Column(name = "document_create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime documentCreateTime;

    /**
     * 文书内容
     */
    @Column(name = "document_content")
    private String documentContent;

    /**
     * 文书文号
     */
    @Column(name = "document_number")
    private String documentNumber;

    /**
     * 盖章后文书地址
     */
    @Column(name = "document_url_after_seal")
    private String documentUrlAfterSeal;

    /**
     * 签字后文书地址（当事人）
     */
    @Column(name = "document_url_after_sign")
    private String documentUrlAfterSign;

    /**
     * 签字时间（当事人）
     */
    @Column(name = "sign_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime signTime;

    /**
     * 送达时间
     */
    @Column(name = "sent_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime sentTime;

    /**
     * 送达截止日期
     */
    @Column(name = "sent_deadline")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private LocalDate sentDeadline;

    /**
     * 文书送达状态
     */
    @Column(name = "document_sent_status")
    private String documentSentStatus;

    /**
     * 文书签字捺印状态
     */
    @Column(name = "document_signstamped_status")
    private String documentSignstampedStatus;

    /**
     * 文书生成时间
     */
    @Column(name = "document_approval_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime documentApprovalTime;

    /**
     * 创建人姓名
     */
    @Column(name = "create_user_name")
    private String createUserName;

    /**
     * 创建人id
     */
    @Column(name = "create_user_id")
    private String createUserId;

    /**
     * 修改人
     */
    @Column(name = "updator")
    private String updator;

    /**
     * 文书标题
     */
    @Column(name = "document_tittle")
    private String documentTittle;


    /**
     * 所属机构（切换部门时使用）
     */
    @Column(name = "org_code")
    private String orgCode;

    /**
     * 所属机构名称（切换部门时使用）
     */
    @Column(name = "org_name")
    private String orgName;

    /**
     * 文书名称
     */
    @Column(name = "document_name")
    private String documentName;
    /**
     * 送达回证pdf地址
     */
    @Column(name = "sent_receipt_pdf_url")
    private String sentReceiptPdfUrl;

    /**
     * 文书修改时间
     */
    @Column(name = "update_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime updateTime;

    /**
     * 文书创建时间
     */
    @Column(name = "create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime createTime;

    /**
     * 打印文书地址
     */
    @Column(name = "document_url_print")
    private String documentUrlPrint;

    /**
     * 文书标准篇幅内容参数
     */
    @Column(name = "document_standard_content")
    private String documentStandardContent;

    /**
     * 文书标准篇幅url
     */
    @Column(name = "document_standard_url")
    private String documentStandardUrl;

    /**
     * 文书标准篇幅盖章后的url
     */
    @Column(name = "document_standard_url_after_seal")
    private String documentStandardUrlAfterSeal;

    /**
     * 文书标准篇幅签字后文书地址
     */
    @Column(name = "document_standard_url_after_sign")
    private String documentStandardUrlAfterSign;

    /**
     * 部门code
     */
    @Column(name = "dept_code")
    private String deptCode;

    /**
     * 来源类型：CF_ZTC文书直通车；CHECK_OBJECT检查
     */
    @Column(name = "source_type")
    private String sourceType;

    /**
     * 来源json
     */
    @Column(name = "source_content")
    private String sourceContent;

    private static final long serialVersionUID = 1L;

}
